local Protect_BanAI = fk.CreateSkill {

  name = "Protect_BanAI",

  tags = { Skill.Compulsory, },

}

local black_list={"ol_1v2_mode",}--"aaa_role_mode","m_2v2_mode","m_1v2_mode","new_heg_mode","m_1v1_mode",}



Protect_BanAI:addEffect(fk.GamePrepared, {
  mute = true,
  global = true,
  priority = 100,
  can_trigger = function(self, event, target, player, data)
    local isai= table.find(player.room.players,function(p)
      return p.id<0 
    end) and  table.contains(black_list,player.room.settings.gameMode)
    --local isfwuqi=table.find(player.room.players,function(p)
      --return p.id>10
    --end) and  table.contains(black_list,player.room.settings.gameMode)
    return isai --and isfwuqi
  end,
  on_use = function(self, event, target, player, data)
    player.room:doBroadcastNotify("ShowToast", "全知之眼：本服专属保护机制！请不要往本模式中添加人机！")--非PVE模式中添加人机！")
    player.room:gameOver("")
  end
})



return Protect_BanAI